﻿<%@ Page Title="Registrar Cliente" Language="C#" MasterPageFile="~/MasterPage/Master.Master"
    AutoEventWireup="true" CodeBehind="wFrmClienteRegistrar.aspx.cs" Inherits="Crosland.Automotriz.Web.CRM.wFrmClienteRegistrar" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx1" %>
<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
    <script src="js_maps/jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=true"></script>
    <script src="js_maps/gmaps.js" type="text/javascript"></script>

    <script type="text/javascript">

        function MostrarAlerta() {
            popupErrores.Show();
        }

        function MostrarCorrecto() {
            popupCorrecto.Show();
        }

    </script>
    <script type="text/javascript">

        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador2');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }
        }

    </script>

    <style type="text/css">
        .iframe
        {
            display: block;
            width: 1000px;
            height: 600px;
            border: 1px solid #C4C4C4;
        }
    </style>
    <style type="text/css">
        .allUpper input
        {
            text-transform: uppercase;
        }
        /*Textbox Watermark*/
        
        .unwatermarked
        {
            height: 18px;
            width: 148px;
        }
        
        .watermarked
        {
            height: 20px;
            width: 150px;
            padding: 2px 0 0 2px;
            color: gray;
        }
        .style3
        {
            width: 144px;
        }
    </style>
    <div class="main-header" style="width: 100%;">
        <div class="main-titulo" style="text-align: left">
            Registrar Cliente</div>
    </div>
    <asp:HiddenField ID="hfIndicador2" runat="server" Value="S" />
    <div style="padding: 15px 15px 15px 25px">
        <table width="100%">
            <tr>
                <td>
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td width="115">
                                <dx:ASPxButton ID="btnRegistrar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Registrar" Width="100px" OnClick="btnRegistrar_Click">
                                    <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Desea guardar los datos?');
}" />
                                    <Image Url="~/Images/save_16.gif">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="btnSalir" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                    CssPostfix="Office2010Blue" OnClick="btnSalir_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                    Text="Salir" Width="100px">
                                    <Image Url="~/Images/logout.png">
                                    </Image>
                                </dx:ASPxButton>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <hr />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="3" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                        CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                        TabSpacing="0px" Width="100%">
                        <TabPages>
                            <dx:TabPage Text="Datos Generales">
                                <TabImage Url="~/Images/landscape.gif">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl1" runat="server" SupportsDisabledAttribute="True">
                                        <table cellpadding="5" cellspacing="0" width="100%">
                                            <tr>
                                                <td colspan="2">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label40" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Código:"></asp:Label>
                                                </td>
                                                <td>
                                                    <asp:Label ID="lblCodigoCliente" runat="server" Font-Bold="True"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Nombre Comercial:"></asp:Label>
                                                    <asp:Label ID="Label26" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtNombreComercial" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="100" NullText="Nombre Comercial"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label3" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Razón Social:"></asp:Label>
                                                    <asp:Label ID="Label27" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtRazonSocial" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="100" NullText="Razon Social"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label13" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Tipo de Documento:"></asp:Label>
                                                    <asp:Label ID="Label28" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboTipoDocumento" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="250px">
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="20px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label4" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Número de Documento:"></asp:Label>
                                                    <asp:Label ID="Label29" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtNumeroDocumento" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="20" NullText="NUMERO DE DOCUMENTO"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label5" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Dirección:"></asp:Label>
                                                    <asp:Label ID="Label30" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtDireccion" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="100" NullText="DIRECCION"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label6" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Teléfono 1:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtTelefono1" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="50" NullText="TELEFONO"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label7" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Teléfono 2:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxTextBox ID="txtTelefono2" runat="server" CssClass="allUpper" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" MaxLength="50" NullText="TELEFONO"
                                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                        <Paddings PaddingLeft="5px" />
                                                        <NullTextStyle CssClass="watermarked">
                                                        </NullTextStyle>
                                                    </dx:ASPxTextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label9" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Departamento:"></asp:Label>
                                                    <asp:Label ID="Label32" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                        <tr>
                                                            <td width="260">
                                                                <dx:ASPxComboBox ID="cboDepartamento" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                    OnSelectedIndexChanged="cboDepartamento_SelectedIndexChanged" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Width="250px">
                                                                    <ItemStyle Height="30px" />
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <ButtonStyle Width="20px">
                                                                    </ButtonStyle>
                                                                    <Paddings PaddingLeft="5px" />
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblDepartamento" runat="server" Font-Italic="True" ForeColor="#666666"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label10" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Provincia:"></asp:Label>
                                                    <asp:Label ID="Label33" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                        <tr>
                                                            <td width="260">
                                                                <dx:ASPxComboBox ID="cboProvincia" runat="server" AutoPostBack="True" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" Enabled="False" Height="30px" IncrementalFilteringMode="Contains"
                                                                    OnSelectedIndexChanged="cboProvincia_SelectedIndexChanged" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Width="250px">
                                                                    <ItemStyle Height="30px" />
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <ButtonStyle Width="20px">
                                                                    </ButtonStyle>
                                                                    <Paddings PaddingLeft="5px" />
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblProvincia" runat="server" Font-Italic="True" ForeColor="#666666"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label11" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Distrito:"></asp:Label>
                                                    <asp:Label ID="Label34" runat="server" ForeColor="#CC0000" Text="*"></asp:Label>
                                                </td>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                        <tr>
                                                            <td width="260">
                                                                <dx:ASPxComboBox ID="cboDistrito" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" Enabled="False" Height="30px" IncrementalFilteringMode="Contains"
                                                                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="250px">
                                                                    <ItemStyle Height="30px" />
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <ButtonStyle Width="20px">
                                                                    </ButtonStyle>
                                                                    <Paddings PaddingLeft="5px" />
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td>
                                                                <asp:Label ID="lblDistrito" runat="server" Font-Italic="True" ForeColor="#666666"></asp:Label>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label12" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Zona Registral:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboZonaRegistral" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="250px" AutoPostBack="True" OnSelectedIndexChanged="cboZonaRegistral_SelectedIndexChanged">
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="20px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 163px">
                                                    <asp:Label ID="Label42" runat="server" Font-Bold="True" ForeColor="Black" Style="font-family: Verdana;
                                                        font-size: 11px" Text="Oficina Registral:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboOficinaRegistral" runat="server" AutoResizeWithContainer="True"
                                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                        Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        Width="250px">
                                                        <Columns>
                                                            <dx:ListBoxColumn Caption="Tipo de Oficina" FieldName="TipoOficina" />
                                                            <dx:ListBoxColumn Caption="Sede" FieldName="Sede" />
                                                            <dx:ListBoxColumn Caption="Dirección" FieldName="Direccion" Width="250px" />
                                                        </Columns>
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <ButtonStyle Width="20px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td colspan="2">
                                                    <asp:Label ID="Label36" runat="server" Font-Names="Calibri" ForeColor="#CC0000" Text="* Estos datos son obligatorios."></asp:Label>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Razones Sociales">
                                <TabImage Url="~/Images/relacion.PNG">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl2" runat="server" SupportsDisabledAttribute="True">
                                        <dx:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" EnableDefaultAppearance="False" GroupBoxCaptionOffsetX="6px"
                                            GroupBoxCaptionOffsetY="-19px" HeaderText="Razones Sociales" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Width="100%">
                                            <ContentPaddings PaddingBottom="10px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="10px" />
                                            <HeaderStyle>
                                                <Paddings PaddingBottom="6px" PaddingLeft="9px" PaddingRight="11px" PaddingTop="3px" />
                                            </HeaderStyle>
                                            <PanelCollection>
                                                <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
                                                    <table width="100%">
                                                        <tr>
                                                            <td>
                                                                <table cellpadding="0" cellspacing="0" width="100%">
                                                                    <tr>
                                                                        <td width="105">
                                                                            <dx:ASPxButton ID="btnAgregarRazonSocial" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" OnClick="btnAgregarRazonSocial_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                Text="Agregar" Width="100px">
                                                                                <Image Url="~/Images/add2.png">
                                                                                </Image>
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                        <td width="105">
                                                                            <dx:ASPxButton ID="btnQuitar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                                CssPostfix="Office2010Blue" OnClick="btnQuitar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                                Text="Quitar" Width="100px">
                                                                                <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Desea quitar esta razón social?');
}" />
                                                                                <Image Url="~/Images/cancel.gif">
                                                                                </Image>
                                                                            </dx:ASPxButton>
                                                                        </td>
                                                                        <td>
                                                                            &nbsp;
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <hr />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                <dx:ASPxGridView ID="gvRazonesSociales" runat="server" AutoGenerateColumns="False"
                                                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                                                                    KeyFieldName="ID_CLIENTE" Width="100%">
                                                                    <Columns>
                                                                        <dx:GridViewDataTextColumn Caption="Razón Social" FieldName="DES_CLIENTE" ShowInCustomizationForm="True"
                                                                            VisibleIndex="0">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="RUC / DNI" FieldName="NIF" ShowInCustomizationForm="True"
                                                                            VisibleIndex="1" Width="100px">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Dirección" FieldName="DES_DIRECCION" ShowInCustomizationForm="True"
                                                                            VisibleIndex="2">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Teléfono 1" FieldName="Telefono" ShowInCustomizationForm="True"
                                                                            VisibleIndex="3">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Teléfono 2" FieldName="Telefono2" ShowInCustomizationForm="True"
                                                                            VisibleIndex="4">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Grupo" FieldName="Grupo" ShowInCustomizationForm="True"
                                                                            VisibleIndex="5">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Departamento" FieldName="Departamento" ShowInCustomizationForm="True"
                                                                            VisibleIndex="6">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Provincia" FieldName="Provincia" ShowInCustomizationForm="True"
                                                                            VisibleIndex="7">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Distrito" FieldName="Distrito" ShowInCustomizationForm="True"
                                                                            VisibleIndex="8">
                                                                        </dx:GridViewDataTextColumn>
                                                                        <dx:GridViewDataTextColumn Caption="Zona Registral" FieldName="DES_ZONA_REGISTRAL"
                                                                            ShowInCustomizationForm="True" VisibleIndex="10">
                                                                        </dx:GridViewDataTextColumn>
                                                                    </Columns>
                                                                    <SettingsBehavior AllowClientEventsOnLoad="False" AllowDragDrop="False" AllowFocusedRow="True"
                                                                        AllowGroup="False" AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True"
                                                                        AllowSort="False" />
                                                                    <SettingsPager Visible="False">
                                                                    </SettingsPager>
                                                                    <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                                                                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                        </LoadingPanelOnStatusBar>
                                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                        </LoadingPanel>
                                                                    </Images>
                                                                    <ImagesFilterControl>
                                                                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                                        </LoadingPanel>
                                                                    </ImagesFilterControl>
                                                                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                                        </Header>
                                                                        <LoadingPanel ImageSpacing="5px">
                                                                        </LoadingPanel>
                                                                    </Styles>
                                                                    <StylesPager>
                                                                        <PageNumber ForeColor="#3E4846">
                                                                        </PageNumber>
                                                                        <Summary ForeColor="#1E395B">
                                                                        </Summary>
                                                                    </StylesPager>
                                                                    <StylesEditors ButtonEditCellSpacing="0">
                                                                        <ProgressBar Height="21px">
                                                                        </ProgressBar>
                                                                    </StylesEditors>
                                                                </dx:ASPxGridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </dx:PanelContent>
                                            </PanelCollection>
                                        </dx:ASPxRoundPanel>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Supervisores de Venta">
                                <TabImage Url="~/Images/user.png">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl3" runat="server" SupportsDisabledAttribute="True">
                                        <table border="0" cellpadding="5" cellspacing="0" width="100%">
                                            <tr>
                                                <td class="style3">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style3">
                                                    <asp:Label ID="Label37" runat="server" Text="Supervisor de Venta:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboSupervisor" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                        Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="300px">
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <DropDownButton Width="20px">
                                                        </DropDownButton>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style3">
                                                    <asp:Label ID="Label38" runat="server" Text="Organización de Venta:"></asp:Label>
                                                </td>
                                                <td>
                                                    <dx:ASPxComboBox ID="cboOrganizacion" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" Height="30px" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                        AutoPostBack="True" IncrementalFilteringMode="Contains" OnSelectedIndexChanged="cboOrganizacion_SelectedIndexChanged"
                                                        Width="200px">
                                                        <ItemStyle Height="30px" />
                                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                        </LoadingPanelImage>
                                                        <LoadingPanelStyle ImageSpacing="5px">
                                                        </LoadingPanelStyle>
                                                        <DropDownButton Width="20px">
                                                        </DropDownButton>
                                                        <ButtonStyle Width="13px">
                                                        </ButtonStyle>
                                                        <Paddings PaddingLeft="5px" />
                                                    </dx:ASPxComboBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style3">
                                                    <asp:Label ID="Label39" runat="server" Text="Canal:"></asp:Label>
                                                </td>
                                                <td>
                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                        <tr>
                                                            <td width="205">
                                                                <dx:ASPxComboBox ID="cboCanal" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" Height="30px" IncrementalFilteringMode="Contains"
                                                                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Width="200px">
                                                                    <ItemStyle Height="30px" />
                                                                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                                                    </LoadingPanelImage>
                                                                    <LoadingPanelStyle ImageSpacing="5px">
                                                                    </LoadingPanelStyle>
                                                                    <DropDownButton Width="20px">
                                                                    </DropDownButton>
                                                                    <ButtonStyle Width="13px">
                                                                    </ButtonStyle>
                                                                    <Paddings PaddingLeft="5px" />
                                                                </dx:ASPxComboBox>
                                                            </td>
                                                            <td>
                                                                <dx:ASPxButton ID="btnAgregar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                                    CssPostfix="Office2010Blue" OnClick="btnAgregar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                                    Text="Agregar">
                                                                    <Image Url="~/Images/add2.png">
                                                                    </Image>
                                                                </dx:ASPxButton>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style3">
                                                    &nbsp;
                                                </td>
                                                <td>
                                                    <dx:ASPxGridView ID="gv" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                        CssPostfix="Office2010Blue" KeyFieldName="PK" OnRowDeleting="gv_RowDeleting"
                                                        Width="100%">
                                                        <Columns>
                                                            <dx:GridViewCommandColumn ButtonType="Image" Caption="Eliminar" ShowInCustomizationForm="True"
                                                                VisibleIndex="5" Width="50px">
                                                                <DeleteButton Visible="True">
                                                                    <Image Url="~/Images/delete.png">
                                                                    </Image>
                                                                </DeleteButton>
                                                            </dx:GridViewCommandColumn>
                                                            <dx:GridViewDataTextColumn Caption="Org. de Venta" FieldName="DES_ORG_VTA" ShowInCustomizationForm="True"
                                                                VisibleIndex="0">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Canal" FieldName="DES_CANAL_DISTRIB" ShowInCustomizationForm="True"
                                                                VisibleIndex="1">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Id. Vendedor" FieldName="ID_VENDEDOR" ShowInCustomizationForm="True"
                                                                VisibleIndex="2">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Cod. Vendedor" FieldName="COD_VENDEDOR" ShowInCustomizationForm="True"
                                                                VisibleIndex="3">
                                                            </dx:GridViewDataTextColumn>
                                                            <dx:GridViewDataTextColumn Caption="Vendedor" FieldName="Vendedor" ShowInCustomizationForm="True"
                                                                VisibleIndex="4">
                                                            </dx:GridViewDataTextColumn>
                                                        </Columns>
                                                        <SettingsBehavior AllowDragDrop="False" AllowGroup="False" AllowSort="False" ConfirmDelete="True" />
                                                        <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                                                        <SettingsText ConfirmDelete="¿Seguro de eliminar?" />
                                                        <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                            <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanelOnStatusBar>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </Images>
                                                        <ImagesFilterControl>
                                                            <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                            </LoadingPanel>
                                                        </ImagesFilterControl>
                                                        <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                            <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                            </Header>
                                                            <LoadingPanel ImageSpacing="5px">
                                                            </LoadingPanel>
                                                        </Styles>
                                                        <StylesPager>
                                                            <PageNumber ForeColor="#3E4846">
                                                            </PageNumber>
                                                            <Summary ForeColor="#1E395B">
                                                            </Summary>
                                                        </StylesPager>
                                                        <StylesEditors ButtonEditCellSpacing="0">
                                                            <ProgressBar Height="21px">
                                                            </ProgressBar>
                                                        </StylesEditors>
                                                    </dx:ASPxGridView>
                                                </td>
                                            </tr>
                                        </table>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                            <dx:TabPage Text="Locales">
                                <TabImage Url="~/Images/building.png">
                                </TabImage>
                                <ContentCollection>
                                    <dx:ContentControl ID="ContentControl4" runat="server" SupportsDisabledAttribute="True">
                                        <div style="padding: 15px">
                                            <table width="100%">
                                                <tr>
                                                    <td width="105px">
                                                        <dx:ASPxButton ID="btnNuevoLocal" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Nuevo" Width="100px" OnClick="btnNuevoLocal_Click">
                                                            <Image Url="~/Images/bt_new_button.gif">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td width="105px">
                                                        <dx:ASPxButton ID="btnEditarLocal" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" OnClick="btnEditarLocal_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Editar" Width="100px">
                                                            <Image Url="~/Images/edit.gif">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td width="105px">
                                                        <dx:ASPxButton ID="btnEliminarLocal" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" OnClick="btnEliminarLocal_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Eliminar" Width="100px">
                                                            <ClientSideEvents Click="function(s, e) {
	e.processOnServer = confirm('¿Seguro de eliminar el local?');
}" />
                                                            <Image Url="~/Images/delete.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td width="105">
                                                        <dx:ASPxButton ID="btnVerMapa" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                                            Text="Mapa" Width="100px" OnClick="btnVerMapa_Click">
                                                            <Image Url="~/Images/google_maps.png">
                                                            </Image>
                                                        </dx:ASPxButton>
                                                    </td>
                                                    <td width="155">
                                                        &nbsp;
                                                    </td>
                                                    <td>
                                                        &nbsp;
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="height: 9px" colspan="6">
                                                        <hr />
                                                    </td>
                                                </tr>
                                            </table>
                                            <dx:ASPxGridView ID="grdLocales" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                                CssPostfix="Office2010Blue" Width="100%" KeyFieldName="ID_LOCAL" Caption="Listado de Locales"
                                                Style="font-size: x-small">
                                                <Columns>
                                                    <dx:GridViewDataTextColumn Caption="Establecimiento" FieldName="ESTABLECIMIENTO"
                                                        VisibleIndex="1">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Dirección" FieldName="DIRECCION" VisibleIndex="2">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Departamento" FieldName="DEPARTAMENTO" VisibleIndex="3">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Provincia" FieldName="PROVINCIA" VisibleIndex="4">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Distrito" FieldName="DISTRITO" VisibleIndex="5">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Tiene Mapa" FieldName="TIENE_MAPA" VisibleIndex="9"
                                                        Width="50px">
                                                        <DataItemTemplate>
                                                            <asp:LinkButton ID="lnkVerMapa" runat="server" Font-Names="Arial" Font-Size="10px"
                                                                ForeColor="Blue" Text='<%# Bind("TIENE_MAPA") %>' OnClick="lnkVerMapa_Click"></asp:LinkButton>
                                                        </DataItemTemplate>
                                                        <CellStyle HorizontalAlign="Center">
                                                        </CellStyle>
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="X" FieldName="NUM_COORDENADA_X" Visible="False"
                                                        VisibleIndex="6">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Y" FieldName="NUM_COORDENADA_Y" Visible="False"
                                                        VisibleIndex="7">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="Razón Social" FieldName="DES_CLIENTE" ShowInCustomizationForm="True"
                                                        VisibleIndex="0">
                                                    </dx:GridViewDataTextColumn>
                                                    <dx:GridViewDataTextColumn Caption="ID_CLIENTE" FieldName="ID_CLIENTE" ShowInCustomizationForm="True"
                                                        Visible="False" VisibleIndex="11">
                                                    </dx:GridViewDataTextColumn>
                                                </Columns>
                                                <SettingsBehavior AllowSelectByRowClick="True" AllowFocusedRow="True" AllowDragDrop="False"
                                                    AllowGroup="False" AllowSort="False" />
                                                <SettingsBehavior AllowFocusedRow="True" AllowSelectByRowClick="True" AllowSelectSingleRowOnly="True">
                                                </SettingsBehavior>
                                                <SettingsPager PageSize="20" Visible="False">
                                                </SettingsPager>
                                                <SettingsText GroupPanel="Arrastre una columna hasta aquí para agruparla por esa columna." />
                                                <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False"></Settings>
                                                <SettingsText GroupPanel="Arrastre una columna hasta aqu&#237; para agruparla por esa columna.">
                                                </SettingsText>
                                                <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                                    <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanelOnStatusBar>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </Images>
                                                <ImagesFilterControl>
                                                    <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                                                    </LoadingPanel>
                                                </ImagesFilterControl>
                                                <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                                                    <Header ImageSpacing="5px" SortingImageSpacing="5px">
                                                    </Header>
                                                    <DetailRow CssClass="dxgvDataRow_DevEx1">
                                                    </DetailRow>
                                                    <LoadingPanel ImageSpacing="5px">
                                                    </LoadingPanel>
                                                </Styles>
                                                <StylesPager>
                                                    <PageNumber ForeColor="#3E4846">
                                                    </PageNumber>
                                                    <Summary ForeColor="#1E395B">
                                                    </Summary>
                                                </StylesPager>
                                                <StylesEditors ButtonEditCellSpacing="0">
                                                    <ProgressBar Height="21px">
                                                    </ProgressBar>
                                                </StylesEditors>
                                            </dx:ASPxGridView>
                                        </div>
                                    </dx:ContentControl>
                                </ContentCollection>
                            </dx:TabPage>
                        </TabPages>
                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
                        </LoadingPanelImage>
                        <LoadingPanelStyle ImageSpacing="5px">
                        </LoadingPanelStyle>
                        <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px" />
                        <ContentStyle>
                            <Paddings Padding="12px" />
                            <Border BorderColor="#859EBF" BorderStyle="Solid" BorderWidth="1px" />
                        </ContentStyle>
                    </dx:ASPxPageControl>
                </td>
            </tr>
        </table>
    </div>
    <dx:ASPxPopupControl ID="popupCorrecto" runat="server" AllowDragging="True" ClientInstanceName="popupCorrecto"
        CloseAction="CloseButton" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
        CssPostfix="Office2010Blue" EnableViewState="False" HeaderText="Mensaje" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        Width="300px" EnableHotTrack="False">
        <HeaderImage Url="~/Images/icon_message.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">
                <br />
                <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                            <table width="100%">
                                <tr>
                                    <td align="center" valign="middle">
                                        <asp:Label ID="lblMensaje" runat="server"></asp:Label>
                                        <br />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;
                                        <dx:ASPxButton ID="ASPxButton6" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Aceptar" Width="10px">
                                            <ClientSideEvents Click="function(s, e) {
	popupCorrecto.Hide();
}" />
                                            <Image Url="~/Images/ok.png">
                                            </Image>
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="popupErrores" runat="server" AllowDragging="True" ClientInstanceName="popupErrores"
        CloseAction="CloseButton" EnableViewState="False" HeaderText="Mensaje" Modal="True"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        Width="300px" EnableHotTrack="False">
        <HeaderImage Url="~/Images/icon_message.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle BackColor="#CC0000" Font-Bold="True" Font-Names="Arial" ForeColor="White">
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">
                <br />
                <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                            <table width="100%">
                                <tr>
                                    <td align="center" valign="middle">
                                        <asp:Label ID="lblMensajeError" runat="server" Font-Bold="True" ForeColor="#CC0000"></asp:Label>
                                        <br />
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center">
                                        <dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Aceptar" Width="100px">
                                            <ClientSideEvents Click="function(s, e) {
	popupErrores.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="pcClientes" runat="server" AllowDragging="True" CloseAction="CloseButton"
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
        EnableHotTrack="False" HeaderText="Buscar Clientes" Modal="True" PopupHorizontalAlign="WindowCenter"
        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        Width="500px">
        <HeaderImage Url="~/Images/user.png">
        </HeaderImage>
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">
                <table width="100%">
                    <tr>
                        <td style="width: 64px">
                            <asp:Label ID="Label41" runat="server" Text="Nombre:"></asp:Label>
                        </td>
                        <td style="width: 205px">
                            <dx:ASPxTextBox ID="txtBuscarNombre" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Height="25px" MaxLength="100" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="200px">
                                <Paddings PaddingLeft="5px" />
                            </dx:ASPxTextBox>
                        </td>
                        <td>
                            <asp:Label ID="Label14" runat="server" Text="RUC:"></asp:Label>
                        </td>
                        <td>
                            <dx:ASPxTextBox ID="txtBuscarRUC" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" Height="25px" MaxLength="11" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="100px">
                                <Paddings PaddingLeft="5px" />
                            </dx:ASPxTextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            <dx:ASPxButton ID="btnBuscar" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnBuscar_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Text="Buscar" Width="100px">
                                <Image Url="~/Images/search.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 64px">
                            &nbsp;
                        </td>
                        <td style="width: 205px">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <dx:ASPxGridView ID="gvBusqueda" runat="server" AutoGenerateColumns="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" KeyFieldName="ID_CLIENTE" OnPageIndexChanged="gvBusqueda_PageIndexChanged"
                    Width="100%">
                    <Columns>
                        <dx:GridViewCommandColumn Caption=" " ShowInCustomizationForm="True" ShowSelectCheckbox="True"
                            VisibleIndex="0" Width="50px">
                        </dx:GridViewCommandColumn>
                        <dx:GridViewDataTextColumn Caption="Razón Social" FieldName="DES_CLIENTE" ShowInCustomizationForm="True"
                            VisibleIndex="1">
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn Caption="RUC" FieldName="NIF" ShowInCustomizationForm="True"
                            VisibleIndex="2" Width="70px">
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsBehavior AllowClientEventsOnLoad="False" AllowDragDrop="False" AllowGroup="False"
                        AllowSort="False" />
                    <Settings ShowGroupButtons="False" ShowHeaderFilterBlankItems="False" />
                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="width: 25px">
                            &nbsp;
                        </td>
                        <td class="formato-tabla-td" style="width: 65px">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right" height="2">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 25px">
                            <asp:Label ID="Label15" runat="server" Text="Ver "></asp:Label>
                        </td>
                        <td class="formato-tabla-td" style="width: 65px">
                            <dx:ASPxComboBox ID="cboOpcion" runat="server" AllowMouseWheel="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" EnableAnimation="False" EnableDefaultAppearance="False"
                                Height="25px" SelectedIndex="0" ShowLoadingPanel="False" ShowLoadingPanelImage="False"
                                ShowShadow="False" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Width="60px">
                                <Items>
                                    <dx:ListEditItem Selected="True" Text="100" Value="100" />
                                    <dx:ListEditItem Text="200" Value="200" />
                                    <dx:ListEditItem Text="500" Value="500" />
                                    <dx:ListEditItem Text="1000" Value="1000" />
                                </Items>
                                <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                </LoadingPanelImage>
                                <LoadingPanelStyle ImageSpacing="5px">
                                </LoadingPanelStyle>
                                <ButtonStyle Width="13px">
                                </ButtonStyle>
                                <Paddings PaddingLeft="5px" />
                                <ValidationSettings>
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </dx:ASPxComboBox>
                        </td>
                        <td>
                            <asp:Label ID="Label16" runat="server" Text="registros."></asp:Label>
                        </td>
                        <td align="right">
                            <dx:ASPxButton ID="btnAgregarRazonesSociales" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                CssPostfix="Office2010Blue" OnClick="btnAgregarRazonesSociales_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                Text="Aceptar" Width="100px">
                                <Image Url="~/Images/busqueda-show.png">
                                </Image>
                            </dx:ASPxButton>
                        </td>
                    </tr>
                </table>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="pcCreateAccount" runat="server" ClientInstanceName="pcCreateAccount"
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
        EnableViewState="False" HeaderText="Mapa de " PopupHorizontalAlign="WindowCenter"
        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        AllowDragging="True" CloseAction="CloseButton" Modal="True" EnableHotTrack="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">
                <%--<cc1:GMap ID="mapa" runat="server" Width="700px" Height="500px" />--%>
                <iframe src="wFrmGMap.aspx" class="iframe"></iframe>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <dx:ASPxPopupControl ID="PopupMapaIndividual" runat="server" ClientInstanceName="pcMapaIndividual"
        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
        EnableViewState="False" HeaderText="Mapa" PopupHorizontalAlign="WindowCenter"
        PopupVerticalAlign="WindowCenter" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
        AllowDragging="True" CloseAction="CloseButton" Modal="True" EnableHotTrack="False">
        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Web/Loading.gif">
        </LoadingPanelImage>
        <HeaderStyle>
            <Paddings PaddingLeft="7px" />
        </HeaderStyle>
        <LoadingPanelStyle ImageSpacing="5px">
        </LoadingPanelStyle>
        <ContentCollection>
            <dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">
                <%--<cc1:GMap ID="mapa2" runat="server" Width="700px" Height="500px" />--%>
                <iframe src="wFrmGMap.aspx" class="iframe"></iframe>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
</asp:Content>
